<template>
  <div class="skeleton-panel">
    <div class="skeleton-panel-left">
      <ElTabs tab-position="top" stretch>
        <slot name="left">请添加内容</slot>
      </ElTabs>
    </div>
    <div :class="['skeleton-panel-right', { 'flex-column': flexColumn, 'flex-row': flexRow }]">
      <slot>请添加内容</slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'SkeletonPanel',
    props: {
      flexColumn: Boolean,
      flexRow: Boolean
    }
  }
</script>

<style lang="scss">
  .skeleton-panel {
    @include flex-row;
    height: 100%;
    overflow: auto;
    background-color: #fff;

    .skeleton-panel-right {
      @include flex-item;
      height: 100%;
      overflow: auto;
    }

    .skeleton-panel-left {
      @include flex-not-shrink;
      min-width: 200px;
      height: 100%;
      padding: 0 10px;
      overflow: auto;
      border-right: 1px solid #ccc;
    }
  }
</style>
